Skip to content

Conversation

@2-towns
Copy link
Contributor

@2-towns 2-towns commented Jun 11, 2025

This PR replaces the usage of check eventually with an event subscription mechanism in order to reduce the number of requests sent in our tests and avoid connection timeouts due to overload.

Additionally, it introduces stopOnRequestFail (set to true by default) for marketplacesuite, which will fail the test if a request fails.

Finally, it bumps the contracts to use the latest version of Hardhat.

@2-towns 2-towns force-pushed the chore/improve-marketplace-integration-tests branch 2 times, most recently from 7afc7bc to a8af3b4 Compare June 12, 2025 08:31
@2-towns 2-towns marked this pull request as ready for review June 12, 2025 08:31
@2-towns 2-towns force-pushed the chore/improve-marketplace-integration-tests branch from a8af3b4 to b1d2304 Compare June 13, 2025 11:19
Comment on lines 79 to 82
marketplacesuite(
name = "Simulate invalid proofs",
stopOnRequestFail = false,
body = block:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can also write this as:
marketplacesuite("Simulate invalid proofs", stopOnRequestFail=false):

Then you don't need to change the indentation below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I already tried but got this error:

Expected one of (first mismatch at [position]):
[3] template marketplacesuite(name: string; body: untyped; stopOnRequestFail = true)
  positional param was already given as named param

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the body would need to be the last parameter of marketplacesuite for it to work with the : syntax.

Comment on lines 18 to 21
marketplacesuite(
name = "Validation",
stopOnRequestFail = false,
body = block:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here:
marketplacesuite("Validation", stopOnRequestFail = false):

@2-towns 2-towns force-pushed the chore/improve-marketplace-integration-tests branch from 80c0e87 to 2dd760e Compare June 18, 2025 08:35
Copy link
Contributor

@benbierens benbierens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need this, ASAP.

@benbierens benbierens enabled auto-merge June 18, 2025 13:07
@markspanbroek markspanbroek force-pushed the chore/improve-marketplace-integration-tests branch from 2dd760e to e6da066 Compare June 18, 2025 13:55
@benbierens benbierens added this pull request to the merge queue Jun 19, 2025
Merged via the queue into master with commit d443df4 Jun 19, 2025
56 of 66 checks passed
@benbierens benbierens deleted the chore/improve-marketplace-integration-tests branch June 19, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants